package shuiyuqing.network.http;

import android.graphics.Bitmap;
import android.os.Message;

import managers.UIHandler;
import utils.HttpUtils;

/**
 * 获取网络图片
 * Created by 凯 on 2015/11/8.
 */
@Deprecated
public class GetImageThread extends Thread {

    String urlStr;
    String params;

    public GetImageThread(String urlStr,String params)
    {
        this.urlStr = urlStr;
        this.params = params;
    }

    @Override
    public void run() {
        Bitmap bitmap = HttpUtils.getNetWorkBitmap(urlStr, params);
        Message message = Message.obtain();
        message.obj = bitmap;
        message.what = 0x51;
        UIHandler.uiHandler.sendMessage(message);

    }
}
